package com.woniu.service;

import com.woniu.entity.CustomerInfos;
import com.woniu.entity.Sales;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author Gewang
 * @since 2021-04-01
 */
public interface ISalesService extends IService<Sales> {
    List<Sales> findByCustomerId(Integer cid);
    List<Sales> findByState(Integer state);
    Sales findById(Integer sid);
    int updateState(Integer sid,Integer state);
    int delete(Integer sid);
    int add(Sales sales);
    List<Sales> find();
    List<Sales> findByName(String name);
    List<Sales> findByCid(Integer cid);
}
